package com.sgb.member.ui.adapter;

import android.content.Context;
import android.widget.TextView;

import com.sgb.member.BR;
import com.sgb.member.R;
import com.sgb.member.entity.MemberCompanyInfoEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;
import java.util.List;

/**
 * Time:2021/8/27
 * AUTHOR:F_Q
 * Description:
 */
public class CompanyNameAdapter  extends BaseRecycleAdapter<MemberCompanyInfoEntity> {
    public CompanyNameAdapter(Context context, List<MemberCompanyInfoEntity> datas) {
        super(context, R.layout.item_company_name, datas);
    }


    @Override
    public void convert(ItemViewHolder holder, MemberCompanyInfoEntity bean) {
        holder.setBinding(BR.viewModel, bean);
        TextView names = holder.itemView.findViewById(R.id.name);
        names.setText(bean.getCompanyName()+"");
    }
}
